package com.cspm.ahjy.bc.office.word.domain;

/**
 * 段落中的艺术字，对应XML中的<w:r>标签下的<w:pict>
 * @author ServerZhang
 * @date 2017年9月27日
 */
public class MSWordart{

	private String text = "";// 文字内容
	private String fontName = "默认字体";// 字体
	private Integer fontSize = 0;// 字号
	private Boolean bold = false;// 加粗
	private Boolean italic = false;// 斜体
	private String color = "000000";//颜色
	
	private String style = null; //艺术字样式说明
	private MSWordartStyle msWordartStyle = null; //艺术字样式
	
	public MSWordart(){
		
	}
	
	/**
	 * 判断是否是相同内容，仅文字一致
	 * @param font
	 * @return
	 * @author ServerZhang
	 * @date 2017年10月12日
	 */
	public Boolean maybeEquals(MSWordart wordart){
		if (wordart == null) {
			return Boolean.FALSE;
		}
		if (this.text.equals(wordart.getText())) {
			return Boolean.TRUE;
		}
		return Boolean.FALSE;
	}

	
	public MSWordartStyle getMsWordartStyle() {
		return msWordartStyle;
	}

	public void setMsWordartStyle(MSWordartStyle msWordartStyle) {
		this.msWordartStyle = msWordartStyle;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}


	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getFontName() {
		return fontName;
	}

	public void setFontName(String fontName) {
		this.fontName = fontName;
	}

	public Integer getFontSize() {
		return fontSize;
	}

	public void setFontSize(Integer fontSize) {
		this.fontSize = fontSize;
	}

	public Boolean getBold() {
		return bold;
	}

	public void setBold(Boolean bold) {
		this.bold = bold;
	}

	public Boolean getItalic() {
		return italic;
	}

	public void setItalic(Boolean italic) {
		this.italic = italic;
	}

	public String getStyle() {
		/*if (null == this.style &&  this.wordartStyle != null) {
			if (this.wordartStyle != null) {
				this.style = this.wordartStyle.getLocation();
			}else {
				this.style = "抱歉，无法获取到艺术字样式！";
			}
		}*/
		return this.style;
		
	}

	public void setStyle(String style) {
		this.style = style;
	}
	
	

}
